Expand description
Parser for the ktx2 texture container format.
§Features
- Async reading
- Parsing
- Validating
- Data format description
- Key/value data
§Example
// Crate instance of reader. This validates the header
let mut reader = ktx2::Reader::new(file).expect("Can't create reader"); // Crate instance of reader.
// Get general texture information.
let header = reader.header();
// Read iterator over slices of each mipmap level.
let levels = reader.levels().collect::<Vec<_>>();
Structs§
- Known texture formats
- Container-level metadata
- Decodes KTX2 texture data
- Known supercompression schemes
Enums§
- Error, that happend when data doesn’t satisfy expected parameters.